const map = {
	"radio-group": "el-radio",
	"checkbox-group": "el-checkbox",
	"select": "el-option"
};
export function getChild(type, h, options = []) {
	let arr = [];
	if (map[type] !== undefined) {
		for (let i of options) {
			let label = type === 'select' ? i.label : i.value;
			let value = type === 'select' ? i.value : i.label;
			arr.push(
				h(`${map[type]}`, {
					props: {
						label,
						value
					}
				}, [h('span', i.label)])
			);
		}
	}
	return arr;
}
